PDF4Java Reference Documentation
com.o2sol.pdf4java.document Package / PDFPageSize Class / getPredefinedPageSize Method
Width.
Height.
In This Topic
    getPredefinedPageSize Method
    In This Topic
    Gets the predefined page size that matches the given dimensions.
    Syntax
    public static PDFPageSize getPredefinedPageSize( 
       double width,
       double height
    )

    Parameters

    width
    Width.
    height
    Height.

    Return Value

    A predefined page size if the dimensions match otherwise an unknown page size is returned.
    See Also